﻿@{
    ViewBag.Title = "DownLoad";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>查看项目信息</h2>
<script>
    $(document).ready()
    {
        Show(1);
    }
    function Show(i) {
        $.ajax({
            url: '/Home/ShowDownLoad',
            Type: 'get',
            success: function (d) {
                $(d).each(function (i, item) {
                    var tr = "<tr><td>" + item.Id + "</td><td>" + item.ProjectName + "</td><td>" + item.ProjectType + "</td><td>" + item.YesAccredit + "</td><td>" + item.DeclareTime + "</td><td>" + item.Area + "</td><td>" + item.Name + "</td><td>" + item.ProjectState + "</td><td><a href='#'>下载文件</a></td></tr>";
                    $("#table1 tbody").append(tr);
                })
            }
        })
    }

</script>

<table id="table1" class="table table-bordered table-hover text-center">
    <thead>
        <tr>
            <td>编号</td>
            <td>项目名称</td>
            <td>项目类别</td>
            <td>是否授权</td>
            <td>申报时间</td>
            <td>所属区域</td>
            <td>项目负责人</td>
            <td>状态</td>
            <td>下载</td>
        </tr>
    </thead>
    <tbody></tbody>
</table>